package cn.legend.travel.admin.authorize.pojo.param;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class RoleUpdateParam implements Serializable {
    @NotNull(message = "id不能为空")
    @Range(min = 3, message = "id为1,2的角色权限不允许被修改")
    Long id;
    @NotNull(message = "描述不能为空")
    String description;
}
